home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- timer += 1;
- rot = this._rotation + 90;
- this._x += Math.sin(rot * 3.141592653589793 / 180) * speed;
- this._y -= Math.cos(rot * 3.141592653589793 / 180) * speed;
- if(this.hitTest(_root.pandam.hit))
- {
- speed = 0;
- _root.pandam.myColor.setRGB(16777062);
- _root.pandam.hit.gotoAndPlay(2);
- _root.pandam.life -= 5;
- _root.lifeber._xscale -= 5;
- this.gotoAndPlay(2);
- }
- if(_root.yuka.jimen.hitTest(_X,_Y,true) || _root.yuka.ten.hitTest(_X,_Y,true))
- {
- this.gotoAndPlay(2);
- }
- if(timer > 20)
- {
- this.removeMovieClip();
- }
- if(Key.isDown(65))
- {
- if(_root.yuka._x < 230)
- {
- this._x += _root.ido;
- }
- }
- if(Key.isDown(68))
- {
- if(_root.yuka._x > -2830)
- {
- this._x -= _root.ido;
- }
- }
- }
-